﻿// -----------------------------------------------------------------------
// <copyright file="Generator.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Raop.Library.Tools
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class Generator
    {
        private static int numeric = 0;
        private static object obj = new object();

        public static int GenUniqueInt()
        {
            lock (Generator.obj)
            {
                numeric++;
                return numeric;
            }
        }

        public static string GenVariableName()
        {
            return String.Format("RAOPvariable_{0}", GenUniqueInt());
        }

    }
}
